package com.hmy.infrastructure.service.signature;

import com.hmy.contract.bo.request.contract.ContractSignFinishedRequest;
import com.hmy.infrastructure.manager.ContractFeignClientManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author seven.qi 齐胜南
 * @version 1.0
 * @description
 * @date 2023/12/24 18:18
 */

@Service
@Slf4j
public class FadadaRevokeService {

    @Resource
    private ContractFeignClientManager contractClient;


    public void signSuccess(String signTaskId, String transReferenceId) {
        ContractSignFinishedRequest contractSignFinishedRequest = new ContractSignFinishedRequest();
        contractSignFinishedRequest.setSignTaskId(signTaskId);
        contractSignFinishedRequest.setTransReferenceId(transReferenceId);
        contractClient.signFinished(contractSignFinishedRequest);
    }

}
